/*
 * File:   Model2Test.cpp
 * Author: Guilherme Monteiro
 *
 */

#include "Model2Test.h"


CPPUNIT_TEST_SUITE_REGISTRATION(Model2Test);

Model2Test::Model2Test() {
}

Model2Test::~Model2Test() {
}

void Model2Test::setUp() {
}

void Model2Test::tearDown() {
}

void Model2Test::testModel2() {
    double EPSILON = 0.01; // max error granted
    
    Model2* model2 = new Model2();
    
    if ( !(strcmp(model2->getModelName().c_str(), MODEL2_NAME) == 0) ) {  
        CPPUNIT_ASSERT(false);
    }
    
    if ( !(fabs(model2->getTAX_RELATIVE_TO_MINIMUM_HORIZONTAL() - 0.1 ) <= EPSILON )) {
        CPPUNIT_ASSERT(false); 
    }
    
    if ( !(fabs(model2->getTAX_RELATIVE_TO_MINIMUM_VERTICAL()- 0.05 ) <= EPSILON )) {
        CPPUNIT_ASSERT(false);
    }
}

